﻿@model Meek.Content.Manage

@{
    ViewBag.Title = "Manage content";
}

<script type="text/javascript" src="@ViewBag.CkEditorPath"></script>
<div style="margin:20px;">
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <div style="padding:5px;">
        <label style="width:125px; float:left;">Content URL:</label> @Html.TextBoxFor(m => m.ManageUrl, new { style = "width:300px;" })
        @Html.ValidationMessageFor(m => m.ManageUrl)
    </div>
    <div style="padding:5px;">
        <label style="width:125px; float:left;">Title:</label> @Html.TextBoxFor(m => m.ContentTitle, new { style = "width:300px;" })
        @Html.ValidationMessageFor(m => m.ContentTitle)
    </div>
    <div style="padding:5px;">
        <label style="width:125px; float:left;">Is Partial Content?:</label> @Html.CheckBoxFor(m => m.Partial)
        @Html.ValidationMessageFor(m => m.Partial)
    </div>
    <div style="padding:5px;">
        @Html.ValidationMessageFor(m => m.EditorContents)
        <textarea class="ckeditor" cols="80" id="EditorContents" name="EditorContents" rows="10">
            @Model.EditorContents
        </textarea>
    </div>
    <button name="submit" value="save" id="SaveContent" class="btncolorMeek">Save Content</button>
    <button name="submit" value="delete" id="DeleteContent" class="btncolorMeek">Delete Content</button>
}
</div>